
<!doctype html>
<html>
<head>
<title>纸质合同编辑</title> <#include "../../commonUse.html"/>
<script type="text/javascript"
	src="${ctx.contextPath}/js/jquery.form.js"></script>
<script
	src="${ctx.contextPath}/pages/business/contract/js/contract_paper_update.js"></script>
<script src="${ctx.contextPath}/js/validator.js"></script>

<script>
	var recId='${contract.REC_ID}';
	var validity='${contract.VALIDATY}';
</script>
</head>
<body>
	<div class="list-template">
		<div class="m-head m-head-p">
			<div class="left">
				<label class="title">工人合同编辑</label>
			</div>
			<div class="right">
				<div class="flow"></div>
				<!--     <div class="f i-setting f_setting" id="tradeTypeID"></div> -->
			</div>
			<img class="panel-close" src="../images/card-close.png"
				onclick="parent.closeDialogWin();" />
		</div>
		<div class="m-page">
			<form method="post" id="form1" name="form1">
				<div class="l-edit" id='main_div'>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<!-- 工人ID -->
						<input type="hidden" id="owner" name="owner"value="${contract.REC_ID}"></input>
						<input type="hidden" id="recId" name="recId"value="${contract.REC_ID}"></input>
						<!-- 纸质合同 -->
						<input type="hidden" id="type" name="type" value="1"></input>
						<tr>
							<td class="font" width="30%">员工姓名：<span class="empt">*</span></td>
							<td width="70%"><input type="text" id="name" name="name" readonly
								value="${contract.NAME}" class="text" maxlength="10" 
								dataType="LimitA" min="1" max="20" msg="员工姓名不能为空且少于20个字节."></input></td>

						</tr>
						<tr>
							<td class="font" width="30%">工号：</td>
							<td width="70%"><input type="text" id="jobno" name="jobno" readonly value="${contract.JOBNO}"
								class="text" maxlength="10"></input></td>
						</tr>
						<tr>
							<td class="font" width="30%">合同开始日期：<span class="empt">*</span></td>
							<td width="70%"><input readonly="readonly" name="bgtime" 
								style="width: 200px;" id="bgtime" type="text" value="${contract.HTBGTIME}"
								class="layui-input" dataType="LimitA"
								msg="开始时间不能为空."
								onclick="WdatePicker({maxDate:'#F{$dp.$D(\'edtime\')}'})" /></td>
						</tr>
						<tr>
							<td class="font" width="30%">合同结束日期：<span class="empt">*</span></td>
							<td width="70%"><input readonly="readonly" name="edtime" value="${contract.HTEDTIME}"
								style="width: 200px;" id="edtime" type="text"
								class="layui-input" dataType="LimitA" msg="结束时间不能为空."
								onclick="WdatePicker({minDate:'#F{$dp.$D(\'bgtime\')}'})" /></td>
						</tr>

						<tr>
							<td class="font" width="30%">合同期限：<span class="empt">*</span></td>
							<td width="70%"><select id="validity" name="validity" value="${contract.VALIDITY}"
								class="select">
									<option VALUE="1年" selected>1年</option>
									<option VALUE="2年">2年</option>
									<option VALUE="3年">3年</option>
							</select></td>
						</tr>
						<tr>
							<td class="font" width="30%">当前合同：</td>
							<td width="70%">
								<div id="contractList">
								</div>
							</td>
						</tr>
						<tr>
							<td class="font" width="30%">合同扫描件：</td>
							<td width="70%"><a id="file-name"></a>
								<div class="layui-box layui-upload-button">
									<input onchange="uploadFile();" type="file" name="contract" accept="image/png,image/gif,image/jpeg"
										id="contract" multiple="multiple" class="layui-upload-file">
									<span class="layui-upload-icon"> <i class="layui-icon">&#xe608;</i>选择图片
									</span>
								</div></td>
						</tr>
					</table>
					<div class="edit-btn">
						<ul>
							<li id="checkSaveBtn" class="btn" onclick="contractAdd();">保
								存</li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>